package com.raymond.thread.manager.bean;

import com.raymond.thread.manager.BaseThread;
import lombok.EqualsAndHashCode;
import lombok.Getter;

/**
 * 线程管理bean
 *
 * @author :  raymond
 * @version :  V1.0
 * @date :  2020-09-12 17:01
 */
@EqualsAndHashCode
@Getter
public class BaseThreadDefinition {

    public BaseThreadDefinition(Class<? extends BaseThread> baseThread, String threadPoolName, String threadName) {
        this(baseThread, threadPoolName, threadName, 50);
    }

    public BaseThreadDefinition(Class<? extends BaseThread> baseThread, String threadPoolName, String threadName, int order) {
        this.baseThread = baseThread;
        this.threadPoolName = threadPoolName;
        this.threadName = threadName;
        this.order = order;
    }

    private Class<? extends BaseThread> baseThread;
    /**线程池名称**/
    private String threadPoolName;
    /**当前线程名称**/
    private String threadName;
    /**线程启动顺序,实际用处无意义**/
    private int order;

}
